//
//  YXMineController.m
//  彩票
//
//  Created by mac on 15-3-25.
//  Copyright (c) 2015年 mac. All rights reserved.
//

#import "YXMineController.h"
#import "YXSettingItemController.h"

@interface YXMineController ()

@end

@implementation YXMineController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem initWith:@"FBMM_Barbutton" andSelecte:nil andTitle:@"客服" andTarget:self andActivity:@selector(activity)];
    self.navigationItem.rightBarButtonItem = [UIBarButtonItem initWith:@"Mylottery_config"  andSelecte:nil andTitle:nil andTarget:self andActivity:@selector(setting)];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (void)setting
{
    // 创建子控制器
    YXSettingItemController *vc = [[YXSettingItemController alloc] init];
    vc.view.backgroundColor = [UIColor whiteColor];
    vc.title = @"设置";
    // 隐藏tabbar
    // vc.hidesBottomBarWhenPushed = YES; //只对系统自带的tabbar有效
    // 跳转到子控制器
    [self.navigationController pushViewController:vc animated:YES];
    
}

- (void)activity
{
    YX_SHOUW_METHOD_INFO
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
